@echo off
echo Building go-war3proxy...

REM 清理旧的编译产物
if exist go-war3proxy.exe del go-war3proxy.exe

REM 编译项目
go build -o go-war3proxy.exe .

if %ERRORLEVEL% EQU 0 (
    echo Build successful!
    echo Executable: go-war3proxy.exe
    dir go-war3proxy.exe
) else (
    echo Build failed!
    exit /b 1
)
